<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/9
 * Time: 15:15
 */

echo "<title>6-8 PHP中循环结构之do while循环语句 </title>";
echo "<p style='text-align: center'><a href=\"index.php\"><font size=\"4\">目录</font></a></p>";
header("Content-type: text/html; charset=utf-8");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

$i = 1;//从第1圈开始跑
do{//跑10圈
    echo "在跑第".$i."圈。";
    $i++;
}while($i<=10);